import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/buyer_entity.dart';

BuyerEntity $BuyerEntityFromJson(Map<String, dynamic> json) {
  final BuyerEntity shipperEntity = BuyerEntity();

  final String? userId = jsonConvert.convert<String>(json['userId']);
  if (userId != null) {
    shipperEntity.userId = userId;
  }
  final String? nickname = jsonConvert.convert<String>(json['nickname']);
  if (nickname != null) {
    shipperEntity.nickname = nickname;
  }
  return shipperEntity;
}

Map<String, dynamic> $BuyerEntityToJson(BuyerEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['userId'] = entity.userId;
  data['nickname'] = entity.nickname;
  return data;
}
